﻿using DevExpress.Persistent.BaseImpl;
using EasyXaf.EntityDesigner.BusinessObjects.Entities.EntityProperties;

namespace EasyXaf.EntityDesigner.BusinessObjects.Entities.ValidationRules;

/// <summary>
/// 验证规则
/// </summary>
public abstract partial class ValidationRule : BaseObject
{
    protected ValidationRule()
    {
    }

    private partial string GetDescription()
    {
        return GetDescriptionCore();
    }

    private partial IList<EntityProperty> GetTargetPropertyDataSource()
    {
        return Entity?.Properties;
    }

    protected abstract string GetDescriptionCore();
}
